package com.example.front.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class LineCreateDto {
    @NotBlank(message = "产线名称不能为空")
    private String name;
    @Min(value = 1, message = "负责人id不能为空")
    private Long userId;
    @Min(value = 1, message = "车间id不能为空")
    private Long workshopId;
}
